/*     */ package com.jcrj.action.office;
/*     */ 
/*     */ import com.jcrj.action.BaseAction;
/*     */ import com.jcrj.entity.OTask;
/*     */ import com.jcrj.entity.OTaskReport;
/*     */ import com.jcrj.entity.OUser;
/*     */ import com.jcrj.service.SysLogService;
/*     */ import com.jcrj.service.TaskService;
/*     */ import com.jcrj.util.DateUtil;
/*     */ import java.io.PrintWriter;
/*     */ import java.util.Date;
/*     */ import java.util.List;
/*     */ import java.util.Map;
/*     */ import javax.servlet.http.HttpServletResponse;
/*     */ 
/*     */ public class TaskListAction extends BaseAction
/*     */ {
/*     */   private TaskService taskService;
/*     */   private List<OTask> taskList;
/*     */   private List<OTaskReport> taskReportList;
/*     */   private OTaskReport taskreport;
/*     */   private long pageCount;
/*     */   private long totalCount;
/*     */   private String[] ids;
/*     */   private int taskReportId;
/*     */   private String title;
/*     */   private String startTime;
/*     */   private String endTime;
/*     */   private String type;
/*     */   private String state;
/*     */   private String major;
/*     */   private String selectUserId;
/*     */   private String notifyUserId;
/*     */   private String checkbox1;
/*     */   private String checkbox2;
/*     */   private Date date;
/*     */   private SysLogService sysLogService;
/*     */ 
/*     */   public String todoTaskList()
/*     */   {
/*  38 */     OUser ou = (OUser)super.getSession().get("userInfo");
/*  39 */     String agent = this.sysLogService.getAgentUser(ou);
/*  40 */     String time = DateUtil.DateToString(new Date());
/*  41 */     this.totalCount = this.taskService.countTodoTask(agent, time).longValue();
/*  42 */     this.pageCount = ((this.totalCount - 1L) / 10L + 1L);
/*  43 */     if (super.getCurrentPage() > this.pageCount) {
/*  44 */       super.setCurrentPage(Long.valueOf(this.pageCount).intValue());
/*     */     }
/*  46 */     this.taskList = this.taskService.getTodoTaskList(agent, time, super.getCurrentPage());
/*  47 */     return "success";
/*     */   }
/*     */ 
/*     */   public String taskSetList() {
/*  51 */     OUser ou = (OUser)super.getSession().get("userInfo");
/*  52 */     this.totalCount = this.taskService.countTaskSet(ou.getId().intValue()).longValue();
/*  53 */     this.pageCount = ((this.totalCount - 1L) / 10L + 1L);
/*  54 */     if (super.getCurrentPage() > this.pageCount) {
/*  55 */       super.setCurrentPage(Long.valueOf(this.pageCount).intValue());
/*     */     }
/*  57 */     this.taskReportList = this.taskService.getTaskSetList(ou.getId().intValue(), super.getCurrentPage());
/*  58 */     setDate(new Date());
/*  59 */     return "success";
/*     */   }
/*     */ 
/*     */   public String taskSetSave() {
/*  63 */     return "success";
/*     */   }
/*     */ 
/*     */   public String saveTaskSet() {
/*     */     try {
/*  68 */       OUser ou = (OUser)super.getSession().get("userInfo");
/*  69 */       this.taskreport.setUserId(ou.getId());
/*  70 */       this.taskService.saveTastSet(this.taskreport, this.selectUserId);
/*  71 */       super.getResponse().getWriter().write("success");
/*     */     } catch (Exception e) {
/*  73 */       e.printStackTrace();
/*     */     }
/*  75 */     return null;
/*     */   }
/*     */ 
/*     */   public String deleteTaskSet() {
/*     */     try {
/*  80 */       this.taskService.deleteTaskSet(this.ids);
/*  81 */       super.getResponse().getWriter().write("success");
/*     */     } catch (Exception e) {
/*  83 */       e.printStackTrace();
/*     */     }
/*  85 */     return null;
/*     */   }
/*     */ 
/*     */   public String updateTaskSet()
/*     */   {
/*  90 */     this.taskService.updateTaskSet(this.taskreport);
/*  91 */     return null;
/*     */   }
/*     */ 
/*     */   public String notifyTaskList() {
/*     */     try {
/*  96 */       OUser ou = (OUser)super.getSession().get("userInfo");
/*  97 */       this.taskList = this.taskService
/*  98 */         .getTaskNotifyList(super.getCurrentPage(), 
/*  98 */         ou.getId().intValue());
/*  99 */       this.totalCount = this.taskService.countTaskNotify(ou.getId().intValue()).longValue();
/* 100 */       this.pageCount = ((this.totalCount - 1L) / 10L + 1L);
/* 101 */       setDate(new Date());
/*     */     } catch (RuntimeException e) {
/* 103 */       e.printStackTrace();
/*     */     }
/* 105 */     return "success";
/*     */   }
/*     */ 
/*     */   public String queryTask()
/*     */   {
/* 110 */     return "success";
/*     */   }
/*     */ 
/*     */   public String queryTaskCx() {
/* 114 */     OUser ou = (OUser)super.getSession().get("userInfo");
/* 115 */     this.taskList = this.taskService.getQueryTaskCxList(super.getCurrentPage(), ou.getId().intValue(), this.title, this.startTime, this.endTime, this.notifyUserId);
/* 116 */     setDate(new Date());
/* 117 */     return "success";
/*     */   }
/*     */ 
/*     */   public TaskService getTaskService()
/*     */   {
/* 122 */     return this.taskService;
/*     */   }
/*     */ 
/*     */   public void setTaskService(TaskService taskService) {
/* 126 */     this.taskService = taskService;
/*     */   }
/*     */ 
/*     */   public List<OTask> getTaskList() {
/* 130 */     return this.taskList;
/*     */   }
/*     */ 
/*     */   public void setTaskList(List<OTask> taskList) {
/* 134 */     this.taskList = taskList;
/*     */   }
/*     */ 
/*     */   public long getPageCount() {
/* 138 */     return this.pageCount;
/*     */   }
/*     */ 
/*     */   public void setPageCount(long pageCount) {
/* 142 */     this.pageCount = pageCount;
/*     */   }
/*     */ 
/*     */   public long getTotalCount() {
/* 146 */     return this.totalCount;
/*     */   }
/*     */ 
/*     */   public void setTotalCount(long totalCount) {
/* 150 */     this.totalCount = totalCount;
/*     */   }
/*     */ 
/*     */   public List<OTaskReport> getTaskReportList() {
/* 154 */     return this.taskReportList;
/*     */   }
/*     */ 
/*     */   public void setTaskReportList(List<OTaskReport> taskReportList) {
/* 158 */     this.taskReportList = taskReportList;
/*     */   }
/*     */ 
/*     */   public OTaskReport getTaskreport() {
/* 162 */     return this.taskreport;
/*     */   }
/*     */ 
/*     */   public void setTaskreport(OTaskReport taskreport) {
/* 166 */     this.taskreport = taskreport;
/*     */   }
/*     */ 
/*     */   public String[] getIds() {
/* 170 */     return this.ids;
/*     */   }
/*     */ 
/*     */   public void setIds(String[] ids) {
/* 174 */     this.ids = ids;
/*     */   }
/*     */ 
/*     */   public int getTaskReportId() {
/* 178 */     return this.taskReportId;
/*     */   }
/*     */ 
/*     */   public void setTaskReportId(int taskReportId) {
/* 182 */     this.taskReportId = taskReportId;
/*     */   }
/*     */ 
/*     */   public String getTitle() {
/* 186 */     return this.title;
/*     */   }
/*     */ 
/*     */   public void setTitle(String title) {
/* 190 */     this.title = title;
/*     */   }
/*     */ 
/*     */   public String getStartTime() {
/* 194 */     return this.startTime;
/*     */   }
/*     */ 
/*     */   public void setStartTime(String startTime) {
/* 198 */     this.startTime = startTime;
/*     */   }
/*     */ 
/*     */   public String getEndTime() {
/* 202 */     return this.endTime;
/*     */   }
/*     */ 
/*     */   public void setEndTime(String endTime) {
/* 206 */     this.endTime = endTime;
/*     */   }
/*     */ 
/*     */   public String getType() {
/* 210 */     return this.type;
/*     */   }
/*     */ 
/*     */   public void setType(String type) {
/* 214 */     this.type = type;
/*     */   }
/*     */ 
/*     */   public String getState() {
/* 218 */     return this.state;
/*     */   }
/*     */ 
/*     */   public void setState(String state) {
/* 222 */     this.state = state;
/*     */   }
/*     */ 
/*     */   public String getMajor() {
/* 226 */     return this.major;
/*     */   }
/*     */ 
/*     */   public void setMajor(String major) {
/* 230 */     this.major = major;
/*     */   }
/*     */ 
/*     */   public String getSelectUserId() {
/* 234 */     return this.selectUserId;
/*     */   }
/*     */ 
/*     */   public void setSelectUserId(String selectUserId) {
/* 238 */     this.selectUserId = selectUserId;
/*     */   }
/*     */ 
/*     */   public String getNotifyUserId() {
/* 242 */     return this.notifyUserId;
/*     */   }
/*     */ 
/*     */   public void setNotifyUserId(String notifyUserId) {
/* 246 */     this.notifyUserId = notifyUserId;
/*     */   }
/*     */ 
/*     */   public String getCheckbox1() {
/* 250 */     return this.checkbox1;
/*     */   }
/*     */ 
/*     */   public void setCheckbox1(String checkbox1) {
/* 254 */     this.checkbox1 = checkbox1;
/*     */   }
/*     */ 
/*     */   public String getCheckbox2() {
/* 258 */     return this.checkbox2;
/*     */   }
/*     */ 
/*     */   public void setCheckbox2(String checkbox2) {
/* 262 */     this.checkbox2 = checkbox2;
/*     */   }
/*     */ 
/*     */   public Date getDate() {
/* 266 */     return this.date;
/*     */   }
/*     */ 
/*     */   public void setDate(Date date) {
/* 270 */     this.date = date;
/*     */   }
/*     */ 
/*     */   public SysLogService getSysLogService() {
/* 274 */     return this.sysLogService;
/*     */   }
/*     */ 
/*     */   public void setSysLogService(SysLogService sysLogService) {
/* 278 */     this.sysLogService = sysLogService;
/*     */   }
/*     */ }

/* Location:           /Volumes/work/oa/WEB-INF/classes/
 * Qualified Name:     com.jcrj.action.office.TaskListAction
 * JD-Core Version:    0.6.0
 */